﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NewsMine.FeedRepository;
using NewsMine.DomainObjects;

namespace FeedRepositoryTest
{
    [TestClass]
    public class FeedRepositoryTest1
    {
        [TestMethod]
        public void TestMethod1()
        {
            DB4O_FeedRepositoryManager rep = new DB4O_FeedRepositoryManager();

            rep.AddFeed(new MFeed{UID=1,Title="Test Feed",Link="http://lookatnews.com/feed.xml"} );

            MFeed f = rep.GetFeedByID(1); ;

            Assert.IsNotNull(f);

        }
    }
}
